package com.lw.ai.mapstruct;

import com.lw.ai.dto.book.BookDTO;
import com.lw.ai.model.Book;
import org.mapstruct.Mapper;

import java.util.List;
import java.util.Map;

@Mapper(componentModel = "spring")
public interface BookMapper {

    BookDTO toDto(Book book);

    List<BookDTO> toDtoList(List<Book> books);

    Map<String, BookDTO> toDtoMap(Map<String, Book> books);
}

